package _spring_test._bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: huangya
 * @Date: 2020/5/20
 * @Description:
 */
public class Test {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("bean/applicationContext.xml");
        User user = (User) ac.getBean("user");
        System.out.println(user.getName());
    }
}
